View Javadoc
1 /*
2 * Created by IntelliJ IDEA.
3 * User: birchfield
4 * Date: Aug 18, 2002
5 * Time: 9:37:04 PM
6 * To change template for new class use
7 * Code Style | Class Templates options (Tools | IDE Options).
8 */
9 package net.plugin.sql.gui.table;
10
11 import net.plugin.sql.beans.DataSource;
12 import net.plugin.sql.util.JDBCConnectionManager;
13 import net.plugin.sql.util.DataSourceException;
14 import net.plugin.sql.gui.model.table.CachedRowSetTableModel;
15 import net.plugin.sql.gui.model.table.CachedRowSetTableInfoModel;
16
17 import javax.swing.*;
18 import javax.sql.RowSet;
19 import java.sql.*;
20 import java.awt.Dimension;
21
22 import sun.jdbc.rowset.CachedRowSet;
23
24 public class SQLInfoTable extends JTable {
25
26 private RowSet rowSet = null;
27
28 public SQLInfoTable() {
29 setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
30 setPreferredScrollableViewportSize(new Dimension(500, 70));
31 }
32
33 public RowSet getRowSet() {
34 return rowSet;
35 }
36
37 public void setRowSet(RowSet rowSet) {
38 this.rowSet = rowSet;
39 setModel(new CachedRowSetTableInfoModel(rowSet));
40 }
41 }
This page was automatically generated by Maven